package com.etone.smartAudit.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.etone.smartAudit.enums.StateType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author: 蒋学伟
 * @date: 2018-07-26 15:57:00
 * @description: 权限
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "d_admin_permission")
public class AdminPermission implements Serializable {

    @TableId(type = IdType.AUTO, value = "intId")
    private Integer id;

    /**
     * 权限名称
     */
    @TableField(value = "vcName")
    private String name;

    /**
     * 权限别名
     */
    @TableField(value = "vcAlias")
    private String alias;

    /**
     * 权限地址
     */
    @TableField(value = "vcUrl")
    private String url;

    /**
     * 请求方式
     */
    @TableField(value = "vcMethod")
    private String method;

    /**
     * 请求状态
     */
    @TableField(value = "vcState")
    private StateType state;

    /**
     * 排序
     */
    @TableField(value = "intSort")
    private Integer sort;
}